home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
dirut
/
pmove20.zip
/
PMOVE.DOC
< prev
next >
Wrap
Text File
|
1987-09-23
|
21KB
|
540 lines
P M O V E
by
Norm Patriquin
Version 2.0
June 1986
Table of Contents
What is PMOVE . . . . . . . . . . . . . . . . . . . . . . 1
What PMOVE does . . . . . . . . . . . . . . . . . . . . . 2
Command Mode Parameters . . . . . . . . . . . . . . . . . 3
Examples . . . . . . . . . . . . . . . . . . . . . . . . 6
Registering PMOVE . . . . . . . . . . . . . . . . . . . . 7
Registration Form . . . . . . . . . . . . . . . . . . . . 8
Problems and Maintenance. . . . . . . . . . . . . . . . . 9
Other Utilities . . . . . . . . . . . . . . . . . . . . . 10
Page 1
What is PMOVE
-------------
PMOVE is a DOS command utility used to move files between
disks and directories on disks. PMOVE combines the functions
of DOS COPY and DELETE commands to make make moving files
very easy. In addition to just moving files, PMOVE also
allows selection criteria to be specified to better qualify
the files to be moved.
PMOVE automatically determines the environment the move is
requested for and then determines if the data must be moved
or if the file can be moved by renaming. Moving with rename
is allowed if the move is to another directory on the same
disk device. If a rename move can be done, it is much faster
than moving the data, it helps to keep from fragmenting disk
free space, and allows very large files to be moved between
directories when they could not normally be moved with DOS
COPY because of insufficient space.
PMOVE is developed to allow standard DOS wildcard pathnames
in the source file specifications, and standard pathnames
for the target directory specification. Wildcards are not
allowed for the target path specification.
PMOVE attempts to anticipate your needs and help you accomplish
your task. For instance, if PMOVE determines that the target
directory name does not exist, it will ask you if it is to be
created. If you respond <YES>, the directory will be created
for you.
I have tried to develop PMOVE with all the features normally
needed for this kind of utility. I hope you find what you
need and that the utility is of use to you.
For an immediate command summary, enter the PMOVE command without
any parameters. A help screen will be displayed.
Page 2
What PMOVE does:
----------------
** Moves files by copying them or renaming them to the new
location.
** Deletes the original file if needed and /C is NOT specified.
** Creates target directory if needed.
** Makes sure the DOS archive flag is set correctly for each
file as it is moved.
** Preserves the DOS date and time for each file moved.
** Allows user to pause move at any time by pressing any
keyboard key. Once stopped, the move can be terminated
by pressing escape.
** Provides file selection and processing control options
to tailor the move process to your own needs.
** Allows commands to be tested so you may be sure
that commands are specified as you desire.
** Copy updated files to a special disk or directory.
** If there is not sufficient space on the current target
disk, PMOVE will allow you to place another disk in the
drive and continue processing. This allows you to easily
move groups of files larger than disk size to other
computers.
** Start with a specific file in a directory.
** End with a specific file in a directory.
** Process files based on the date stored in its directory
entry.
** Warns you before overlaying a file unless specific
parameters indicating otherwise are specified.
** Checks target disk for available space before starting
to move files. This prevents time from being wasted
when the move will not be able to complete.
Page 3
Command Mode Parameters
-----------------------
PMOVE allows several command parameter switches to be specified
to qualify the move criteria. All these parameters are
optional. The PMOVE command is used like DOS COPY except for
these switches. The command format and switch parameters are
described below. A quick review of command parameters is always
available by entering the PMOVE command without any parameters.
COMMAND FORMAT:
PMOVE from_file_spec [to_file_spec] [ (/ switches) ]
[from} Enter the DOS file specification for the directory and
file names to be moved.
The filename portion of the file specification may
contain wildcard characters documented by DOS (* and
?).
[to] Enter the DOS file specification for the directory and
filename to be copied to. If the "to" specification
is not entered, files will be moved to the current
directory.
/N Only move files that do not already exist on the target
directory. (New files). If the file already exists,
no attempt will be made to move it and no warning
message will be printed.
/U Only move files that do not exist on the target
directory or duplicate filenames that are newer than
their counterparts on the target directory or disk.
Use of this option results in the most current version
of each selected file being at the target location.
/R Replace any duplicate files on the target disk or
directory regardless of their dates.
/E Select and move only files that exist on both the "from"
and "to" directories. This causes all duplicate named
files to be replaced.
Page 4
/T Test the move process. Use this switch when you
would like to test the PMOVE command entered without
actually moving any files or creating any directories.
Messages will indicate what will happen if the command
is executed without the /T switch.
/P Pause before each file is moved and ask for approval
to process it.
/C Copy only. Do not delete the file after it is copied.
/M Stop screen from scrolling from scrolling past the end
without user intervention (MORE).
/A Only select files that have the DOS archive attribute
set. This attribute is set by DOS whenever a file
has been created or updated. The attribute is reset
by most backup facilities including the DOS BACKUP
command.
/F:file First. Indicates that processing is not to start until
the specified full filename is encountered in the
scan of the directory.
This parameter is most useful in restarting a
move or copy from a location where it had
previously left off.
/L:file Last. Indicates that processing is to stop after
the spec